{"id":"GHSA-72g6-wgrg-vhm7","revision":null,"records":[{"revision":"24781d68b1e848e4aae74c05c0ba6bcc","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0276","aliases":["GHSA-72g6-wgrg-vhm7","RUSTSEC-2026-0277"],"title":"Path traversal in apimock's file-serving fallback","description":"The file-serving fallback joined a request-derived path onto the\nconfigured response directory and checked only that the result existed,\nnever that it stayed inside that directory. A request containing a raw\n`..` segment could read any file readable by the process, returned with\nHTTP 200.\n\nRead-only: no write, no code execution.\n\nOn the 4.x line `apimock` is a single crate containing the serving code.\nFixed in 4.8.1 by canonicalising each resolved path and rejecting\nanything outside its base directory.\n\n**apimock 5.0.0 and later are not affected by this advisory.** From\n5.0.0 the serving code moved to the `apimock-server` crate, which\n`apimock` depends on; that crate carries its own advisory for the same\nissue, fixed in 5.19.1.","state":0,"publishedAt":"2026-08-26T12:00:00+00:00","modifiedAt":"2026-09-02T09:10:39.4500162+00:00","affected":[{"ecosystem":"crates.io","name":"apimock","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"4.8.1"},{"kind":"introduced","version":"5.0.0"},{"kind":"fixed","version":"5.0.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":null,"severity":null}],"references":["https://crates.io/crates/apimock","https://rustsec.org/advisories/RUSTSEC-2026-0276.html","https://github.com/apimokka/apimock-rs/commit/a9c05fec2d36a750c30e797291a0557f230c8faf"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0276","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0276","identifiers":["RUSTSEC-2026-0276","GHSA-72g6-wgrg-vhm7","RUSTSEC-2026-0277"]},"retained":false,"historicalAffected":[]},{"revision":"46c38e499f6b4e7080dae4024faaf80c","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0277","aliases":["GHSA-72g6-wgrg-vhm7","RUSTSEC-2026-0276"],"title":"Path traversal in apimock-server's file-serving fallback","description":"The file-serving fallback joined a request-derived path onto the\nconfigured response directory and checked only that the result existed,\nnever that it stayed inside that directory. A request containing a raw\n`..` segment could read any file readable by the process, returned with\nHTTP 200.\n\nRead-only: no write, no code execution.\n\nExposure depends on the bind address. The default is `127.0.0.1`;\ndeployments binding `0.0.0.0` or a LAN address are reachable from the\nnetwork. Most HTTP clients normalise `..` away before sending, so\nreaching it requires a client that does not.\n\nAll published versions before 5.19.1 are affected. Fixed in 5.19.1 by\ncanonicalising each resolved path and rejecting anything outside its\nbase directory.\n\n**This advisory also covers `apimock` 5.x**, which depends on\n`apimock-server`. `apimock` 4.x predates the crate split and carries its\nown advisory for the same issue, fixed in 4.8.1.","state":0,"publishedAt":"2026-08-26T12:00:00+00:00","modifiedAt":"2026-09-02T09:10:39.4500162+00:00","affected":[{"ecosystem":"crates.io","name":"apimock-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"5.19.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":null,"severity":null}],"references":["https://crates.io/crates/apimock-server","https://rustsec.org/advisories/RUSTSEC-2026-0277.html","https://github.com/apimokka/apimock-rs/commit/ff0dd152ecfccb3bf00e15cc92bd4d57e485c854"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0277","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0277","identifiers":["RUSTSEC-2026-0277","GHSA-72g6-wgrg-vhm7","RUSTSEC-2026-0276"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T20:48:53.7753706+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T20:48:53.7753706+00:00","lastSuccessAt":"2026-11-19T20:48:53.9474201+00:00","error":null,"lastVerifiedAt":"2026-11-19T20:48:53.9474203+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-c6668b85081a787990972933ae6efd401a52a90252f1b1da3918afc59cad5c10","complete":true,"records":429174,"lastAttemptAt":"2026-11-19T20:47:03.7517395+00:00","lastSuccessAt":"2026-11-19T20:47:03.5462066+00:00","error":null,"lastVerifiedAt":"2026-11-19T20:47:03.7517395+00:00","snapshotPublishedAt":"2026-11-19T20:28:45+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-e9c9208971c64c80a3bc1a680ac65520","complete":false,"records":13868,"lastAttemptAt":"2026-11-19T20:58:51.8481774+00:00","lastSuccessAt":"2026-11-19T20:58:51.844+00:00","error":"520 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T20:58:51.844+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13396,"expectedIdentifiers":13916,"failedIdentifiers":520},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T20:48:53.7753706+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T20:48:53.7753706+00:00","lastSuccessAt":"2026-11-19T20:48:53.9483707+00:00","error":null,"lastVerifiedAt":"2026-11-19T20:48:53.9483709+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-38c7964b63404f7caa1c46d92c13f17c","complete":false,"records":13880,"lastAttemptAt":"2026-11-19T20:49:29.2590173+00:00","lastSuccessAt":"2026-11-19T20:49:29.255+00:00","error":null,"lastVerifiedAt":"2026-11-19T20:49:29.255+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13914,"expectedIdentifiers":13916,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-2798aa1837e1f6fe196f6c2609a4b353f6018eaefd18fc1f0facfbc99f7e806a","complete":true,"records":9967,"lastAttemptAt":"2026-11-19T20:48:53.7315169+00:00","lastSuccessAt":"2026-11-19T20:48:53.4509085+00:00","error":null,"lastVerifiedAt":"2026-11-19T20:48:53.7315169+00:00","snapshotPublishedAt":"2026-11-19T20:48:02+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T20:47:03.9123472+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T20:47:03.9123472+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-144175a7f246d52f4b35e8013958783dc7f5518066becd11cdfe790dd8f37e96","complete":true,"records":3195,"lastAttemptAt":"2026-11-19T20:48:53.7441971+00:00","lastSuccessAt":"2026-11-19T19:49:02.0382337+00:00","error":null,"lastVerifiedAt":"2026-11-19T20:48:53.7441971+00:00","snapshotPublishedAt":"2026-11-19T18:48:09+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-a437eec2a64dfed477d505f6ad9fa602a36ad167c2adafb9020b2035aa41f68a","complete":true,"records":232774,"lastAttemptAt":"2026-11-19T20:48:45.0944442+00:00","lastSuccessAt":"2026-11-19T20:48:44.0441322+00:00","error":null,"lastVerifiedAt":"2026-11-19T20:48:45.0944442+00:00","snapshotPublishedAt":"2026-11-19T20:33:35+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}