{"answers":{"affected":"3 open source packages ship an affected version, including aws-lc-sys.","exploited":"There is no known exploitation of GHSA-394x-vwmw-crm3 in the wild and no public exploit code.","fix":"Upgrade aws-lc-sys to 0.39.0 or later.","what":"GHSA-394x-vwmw-crm3 is a vulnerability in aws-lc-sys, published on 19 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-394x-vwmw-crm3 and fix it if it is affected.\n\nWhat it is: GHSA-394x-vwmw-crm3 is a vulnerability in aws-lc-sys, published on 19 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-394x-vwmw-crm3 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- aws-lc-sys (crates.io): affected from 0.32.0; fixed in 0.39.0\n- aws-lc-sys (crates.io): affected from 0.32.0; fixed in 0.39.0\n- aws-lc-sys (crates.io): affected from 0.32.0; fixed in 0.39.0\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/GHSA-394x-vwmw-crm3/ (Markdown: https://insights.sbomify.com/GHSA-394x-vwmw-crm3/index.md)","id":"GHSA-394x-vwmw-crm3","markdown":"https://insights.sbomify.com/GHSA-394x-vwmw-crm3/index.md","name":"GHSA-394x-vwmw-crm3","record":{"aliases":["RUSTSEC-2026-0044"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"AWS-LC cryptographic library","requires_auth":"none","summary":"A logic error in AWS-LC allows certificates with wildcard or Unicode Common Names to bypass name constraints, enabling potential man-in-the-middle attacks.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\n\nAWS-LC is an open-source, general-purpose cryptographic library.\n\n### Impact\n\nA logic error in CN (Common Name) validation allows certificates with wildcard or raw UTF-8 Unicode CN values to bypass name constraints enforcement. The `cn2dnsid` function does not recognize these CN patterns as valid DNS identifiers, causing `NAME_CONSTRAINTS_check_CN` to skip validation. However, `X509_check_host` accepts these CN values when no dNSName SAN is present, allowing certificates to bypass name constraints while still being used for hostname verification.\n\nCustomers of AWS services do not need to take action. Applications using aws-lc-sys should upgrade to the most recent release of aws-lc-sys.\n\n### Impacted versions:\n\n* aws-lc-sys \u003e= v0.32.0, \u003c v0.39.0\n\n### Patches\n\nThe patch is included in aws-lc-sys v0.39.0.\n\n### Workarounds\n\nApplications that set `X509_CHECK_FLAG_NEVER_CHECK_SUBJECT` to disable CN fallback are not affected. Applications that only encounter certificates with dNSName SANs (standard for public WebPKI) are also not affected.\n\nOtherwise, there is no workaround and applications using aws-lc-sys should upgrade to the most recent releases of aws-lc-sys.\n\n### References\n\nIf you have any questions or comments about this advisory, we ask that you contact AWS Security via our [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting/) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n### Credits\n\nOleh Konko from 1seal (https://1seal.org/)","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"AWS-LC X.509 Name Constraints Bypass via Wildcard/Unicode CN","id":"GHSA-394x-vwmw-crm3","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.39.0"],"introduced":["0.32.0"],"last_affected":[],"package":"aws-lc-sys","purl":null,"source":"GHSA-394x-vwmw-crm3"},{"ecosystem":"crates.io","fixed":["0.39.0"],"introduced":["0.32.0"],"last_affected":[],"package":"aws-lc-sys","purl":"pkg:cargo/aws-lc-sys","source":"GHSA-394x-vwmw-crm3"},{"ecosystem":"crates.io","fixed":["0.39.0"],"introduced":["0.32.0"],"last_affected":[],"package":"aws-lc-sys","purl":"pkg:cargo/aws-lc-sys","source":"RUSTSEC-2026-0044"}],"products":null,"published":"2026-03-19","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A logic error in AWS-LC allows certificates with wildcard or Unicode Common Names to bypass name constraints, enabling potential man-in-the-middle attacks.","url":"https://insights.sbomify.com/GHSA-394x-vwmw-crm3/"}