{"answers":{"affected":"12 open source packages ship an affected version, including symfony/http-client and symfony/symfony. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-50342 in the wild and no public exploit code.","fix":"Upgrade symfony/http-client to a fixed version for your release line: 5.4.47, 6.4.15 or 7.1.8.","what":"CVE-2024-50342 is a low-severity vulnerability in symfony, published on 6 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-50342 and fix it if it is affected.\n\nWhat it is: CVE-2024-50342 is a low-severity vulnerability in symfony, published on 6 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-50342 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- symfony/http-client (Packagist): affected from 4.3.0; fixed in 5.4.47\n- symfony/http-client (Packagist): affected from 4.3.0; fixed in 5.4.47\n- symfony/http-client (Packagist): affected from 6.0.0; fixed in 6.4.15\n- symfony/http-client (Packagist): affected from 6.0.0; fixed in 6.4.15\n- symfony/http-client (Packagist): affected from 7.0.0; fixed in 7.1.8\n- symfony/http-client (Packagist): affected from 7.0.0; fixed in 7.1.8\n- symfony/symfony (Packagist): affected from 4.3.0; fixed in 5.4.47\n- symfony/symfony (Packagist): affected from 4.3.0; fixed in 5.4.47\n- symfony/symfony (Packagist): affected from 6.0.0; fixed in 6.4.15\n- symfony/symfony (Packagist): affected from 6.0.0; fixed in 6.4.15\n- symfony/symfony (Packagist): affected from 7.0.0; fixed in 7.1.8\n- symfony/symfony (Packagist): affected from 7.0.0; fixed in 7.1.8\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-50342/ (Markdown: https://insights.sbomify.com/CVE-2024-50342/index.md)","id":"CVE-2024-50342","markdown":"https://insights.sbomify.com/CVE-2024-50342/index.md","name":"CVE-2024-50342","record":{"aliases":["CLSA-2026-1793214753","DEBIAN-CVE-2024-50342","GHSA-9c3x-r3wp-mgxm","UBUNTU-CVE-2024-50342"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Symfony HTTP client","requires_auth":"low_privilege","summary":"Attackers can enumerate internal IP addresses and ports via host resolution leaks in the Symfony HTTP client library.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"httpclient","vendor":"sensiolabs"}],"cvss":{"score":3.1,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"symfony/http-client is a module for the Symphony PHP framework which provides powerful methods to fetch HTTP resources synchronously or asynchronously. When using the `NoPrivateNetworkHttpClient`, some internal information is still leaking during host resolution, which leads to possible IP/port enumeration. As of versions 5.4.46, 6.4.14, and 7.1.7 the `NoPrivateNetworkHttpClient` now filters blocked IPs earlier to prevent such leaks. All users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["Packagist"],"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":"Internal address and port enumeration allowed by NoPrivateNetworkHttpClient in symfony/http-client","id":"CVE-2024-50342","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":12,"n_references":2,"next":{"headline":"Incorrect response from Validator when input ends with `\\n` in symfony/validator","id":"CVE-2024-50343"},"packages":[{"ecosystem":"Packagist","fixed":["5.4.47"],"introduced":["4.3.0"],"last_affected":[],"package":"symfony/http-client","purl":null,"source":"GHSA-9c3x-r3wp-mgxm"},{"ecosystem":"Packagist","fixed":["5.4.47"],"introduced":["4.3.0"],"last_affected":[],"package":"symfony/http-client","purl":"pkg:composer/symfony/http-client","source":"GHSA-9c3x-r3wp-mgxm"},{"ecosystem":"Packagist","fixed":["6.4.15"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/http-client","purl":null,"source":"GHSA-9c3x-r3wp-mgxm"},{"ecosystem":"Packagist","fixed":["6.4.15"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/http-client","purl":"pkg:composer/symfony/http-client","source":"GHSA-9c3x-r3wp-mgxm"},{"ecosystem":"Packagist","fixed":["7.1.8"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/http-client","purl":null,"source":"GHSA-9c3x-r3wp-mgxm"},{"ecosystem":"Packagist","fixed":["7.1.8"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/http-client","purl":"pkg:composer/symfony/http-client","source":"GHSA-9c3x-r3wp-mgxm"},{"ecosystem":"Packagist","fixed":["5.4.47"],"introduced":["4.3.0"],"last_affected":[],"package":"symfony/symfony","purl":null,"source":"GHSA-9c3x-r3wp-mgxm"},{"ecosystem":"Packagist","fixed":["5.4.47"],"introduced":["4.3.0"],"last_affected":[],"package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"GHSA-9c3x-r3wp-mgxm"},{"ecosystem":"Packagist","fixed":["6.4.15"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/symfony","purl":null,"source":"GHSA-9c3x-r3wp-mgxm"},{"ecosystem":"Packagist","fixed":["6.4.15"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"GHSA-9c3x-r3wp-mgxm"},{"ecosystem":"Packagist","fixed":["7.1.8"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/symfony","purl":null,"source":"GHSA-9c3x-r3wp-mgxm"},{"ecosystem":"Packagist","fixed":["7.1.8"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"GHSA-9c3x-r3wp-mgxm"}],"prev":{"headline":"Security::login does not take into account custom user_checker in symfony/security-bundle","id":"CVE-2024-50341"},"products":["symfony"],"published":"2024-11-06","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":"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-07","vendors":["symfony"]},"summary":"Attackers can enumerate internal IP addresses and ports via host resolution leaks in the Symfony HTTP client library.","url":"https://insights.sbomify.com/CVE-2024-50342/"}