GHSA-g433-pq76-6cmf: Hpke rs Bug Fixes Vulnerability
HIGHGHSA-g433-pq76-6cmf is a HIGH bug fixes vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Hpke rs libraries in the crates.io ecosystem. The issue involves bug fixes in hpke-rs, hpke-rs-rust-crypto. Remediation is available by upgrading affected packages to version 0.6.0.
GHSA-g433-pq76-6cmf at a Glance
How to Fix GHSA-g433-pq76-6cmf
To remediate this vulnerability, upgrade all affected Hpke rs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade hpke-rs to 0.6.0
Upgrade hpke-rs-rust-crypto to 0.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for hpke-rs
How to Check if You Are Affected
To determine whether your application is affected by GHSA-g433-pq76-6cmf, inspect your project dependencies for Hpke rs:
inspect dependencies for hpke-rs
Analyze the terminal output to locate any version of Hpke rs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In Hpke rs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-g433-pq76-6cmf Affected Hpke rs Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
hpke-rs
|
crates.io |
< 0.6.0
|
0.6.0
|
|
hpke-rs-rust-crypto
|
crates.io |
< 0.6.0
|
0.6.0
|
References
Frequently Asked Questions
What is GHSA-g433-pq76-6cmf?
Which Hpke rs versions are affected?
What version fixes GHSA-g433-pq76-6cmf?
Is hpke-rs affected?
Is hpke-rs-rust-crypto affected?
What CWE is associated with GHSA-g433-pq76-6cmf?
How can I check crates.io dependencies for GHSA-g433-pq76-6cmf?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g433-pq76-6cmf",
"modified" : "2026-03-25T21:37:22Z",
"published" : "2026-02-13T20:05:10Z",
"aliases" : [ ],
"summary" : "Bug fixes in hpke-rs, hpke-rs-rust-crypto",
"details" : "We publish a GitHub security advisory for any releases whose CHANGELOG includes bug-fixes, and encourage our users to upgrade. The latest releases of the hpke-rs and hpke-rs-rust-crypto crates contain the following bug-fixes:\n\n## hpke-rs\n- [#127](https://github.com/cryspen/hpke-rs/pull/127): Fix `KemAlgorithm::TryFrom<u16>` mapping where `0x004D` incorrectly resolved to `XWingDraft06` instead of `XWingDraft06Obsolete`.\n- [#123](https://github.com/cryspen/hpke-rs/pull/123): Fix potential overflow in context counter and switch to use u64.\n- [#128](https://github.com/cryspen/hpke-rs/pull/128): Return errors when trying to use open/seal with export only ciphersuite and when using kdf export with an output that's too long (instead of truncating it)\n\nThe issue fixed in #123 was first reported by Nadim Kobeissi.\nThe issues fixed in #127 and #128 were first reported by Scott Arciszewski.\n\n## hpke-rs-rust-crypto\n- [#124](https://github.com/cryspen/hpke-rs/pull/124): Error out on x25519 0 keys\n\nThe issue fixed in #124 was first reported by Nadim Kobeissi.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "hpke-rs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "crates.io",
"name" : "hpke-rs-rust-crypto"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cryspen/hpke-rs/security/advisories/GHSA-g433-pq76-6cmf"
}, {
"type" : "WEB",
"url" : "https://github.com/cryspen/hpke-rs/pull/123"
}, {
"type" : "WEB",
"url" : "https://github.com/cryspen/hpke-rs/pull/124"
}, {
"type" : "WEB",
"url" : "https://github.com/cryspen/hpke-rs/pull/127"
}, {
"type" : "WEB",
"url" : "https://github.com/cryspen/hpke-rs/pull/128"
}, {
"type" : "WEB",
"url" : "https://github.com/cryspen/hpke-rs/commit/1c247b5c9aeca602ad2971c9bd49817fe2c308e6"
}, {
"type" : "WEB",
"url" : "https://github.com/cryspen/hpke-rs/commit/25248bd624cc0325c98a05c169a0c9aa0aced632"
}, {
"type" : "WEB",
"url" : "https://github.com/cryspen/hpke-rs/commit/3a8254938f43bdc4e0c9c4f987f8071f19779066"
}, {
"type" : "WEB",
"url" : "https://github.com/cryspen/hpke-rs/commit/b54c8bb83906331bdf4f606cafa30cd7fd20b531"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cryspen/hpke-rs"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2026-0070.html"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2026-0072.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-190", "CWE-20", "CWE-697" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-13T20:05:10Z",
"nvd_published_at" : null
}
}