{"answers":{"affected":"3 open source packages ship an affected version, including aiosmtpd. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-27305 in the wild and no public exploit code.","fix":"Upgrade aiosmtpd to 1.4.5 or later.","what":"CVE-2024-27305 is a medium-severity vulnerability in aio-libs aiosmtpd, published on 12 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-27305 and fix it if it is affected.\n\nWhat it is: CVE-2024-27305 is a medium-severity vulnerability in aio-libs aiosmtpd, published on 12 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-27305 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- aiosmtpd (PyPI): affected all versions; fixed in 1.4.5\n- aiosmtpd (PyPI): affected all versions; fixed in 1.4.5\n- aiosmtpd (PyPI): affected all versions; fixed in 1.4.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-27305/ (Markdown: https://insights.sbomify.com/CVE-2024-27305/index.md)","id":"CVE-2024-27305","markdown":"https://insights.sbomify.com/CVE-2024-27305/index.md","name":"CVE-2024-27305","record":{"aliases":["DEBIAN-CVE-2024-27305","GHSA-pr2m-px7j-xg65","OESA-2024-1276","OESA-2024-1320","OESA-2024-1321","OESA-2024-1322","PYSEC-2024-221","UBUNTU-CVE-2024-27305","openSUSE-SU-2024:13774-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python SMTP library","requires_auth":"none","summary":"Attackers can spoof sender addresses in inbound emails via SMTP smuggling, enabling phishing attacks against aiosmtpd users.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"aiosmtpd","vendor":"aio-libs"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"description":"aiosmtpd is a reimplementation of the Python stdlib smtpd.py based on asyncio. aiosmtpd is vulnerable to inbound SMTP smuggling. SMTP smuggling is a novel vulnerability based on not so novel interpretation differences of the SMTP protocol. By exploiting SMTP smuggling, an attacker may send smuggle/spoof e-mails with fake sender addresses, allowing advanced phishing attacks. This issue is also existed in other SMTP software like Postfix. With the right SMTP server constellation, an attacker can send spoofed e-mails to inbound/receiving aiosmtpd instances. This issue has been addressed in version 1.4.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"SMTP smuggling in aiosmtpd","id":"CVE-2024-27305","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"other","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"aiohttp vulnerable to XSS on index pages for static file handling","id":"CVE-2024-27306"},"packages":[{"ecosystem":"PyPI","fixed":["1.4.5"],"introduced":["0"],"last_affected":[],"package":"aiosmtpd","purl":null,"source":"GHSA-pr2m-px7j-xg65"},{"ecosystem":"PyPI","fixed":["1.4.5"],"introduced":["0"],"last_affected":[],"package":"aiosmtpd","purl":"pkg:pypi/aiosmtpd","source":"GHSA-pr2m-px7j-xg65"},{"ecosystem":"PyPI","fixed":["1.4.5"],"introduced":["0"],"last_affected":[],"package":"aiosmtpd","purl":"pkg:pypi/aiosmtpd","source":"PYSEC-2024-221"}],"prev":{"headline":"pgx SQL Injection via Protocol Message Size Overflow","id":"CVE-2024-27304"},"products":["aiosmtpd"],"published":"2024-03-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["aio-libs"]},"summary":"Attackers can spoof sender addresses in inbound emails via SMTP smuggling, enabling phishing attacks against aiosmtpd users.","url":"https://insights.sbomify.com/CVE-2024-27305/"}