{"id":"CVE-2024-48915","aliases":["CVE-2024-48915","GHSA-fmj7-7gfw-64pg"],"related":[],"kind":"vulnerability","state":"published","title":"Agent Dart missing certificate verification checks","summary":"Agent Dart is an agent library built for Internet Computer for Dart and Flutter apps. Prior to version 1.0.0-dev.29, certificate verification in `lib/agent/certificate.dart` does not occur properly. During the delegation verification in the `_checkDelegation` function, the canister_ranges aren't verified. The impact of not checking the canister_ranges is that a subnet can sign canister responses in behalf of another subnet. The certificate’s timestamp, i.e /time path, is also not verified, meaning that the certificate effectively has no expiration time. Version 1.0.0-dev.29 implements appropriate certificate verification.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Agent Dart is an agent library built for Internet Computer for Dart and Flutter apps. Prior to version 1.0.0-dev.29, certificate verification in `lib/agent/certificate.dart` does not occur properly. During the delegation verification in the `_checkDelegation` function, the canister_ranges aren't verified. The impact of not checking the canister_ranges is that a subnet can sign canister responses in behalf of another subnet. The certificate’s timestamp, i.e /time path, is also not verified, meaning that the certificate effectively has no expiration time. Version 1.0.0-dev.29 implements appropriate certificate verification.","source":"cvelist"},{"lang":"en","text":"Certificate verification (in [lib/agent/certificate.dart](https://github.com/AstroxNetwork/agent_dart/blob/main/lib/agent/certificate.dart)) has been found to contain two issues:\n   - During the delegation verification (in [_checkDelegation](https://github.com/AstroxNetwork/agent_dart/blob/f50971dfae3f536c1720f0084f28afbcf5d99cb5/lib/agent/certificate.dart#L162) function) the canister_ranges aren't verified. The impact of not checking the canister_ranges is that a subnet can sign canister responses in behalf of another subnet. You have more details in the IC specification [here](https://internetcomputer.org/docs/current/references/ic-interface-spec#certification-delegation). Also for reference you can check how is this implemented in [the agent-rs](https://github.com/dfinity/agent-rs/blob/608a3f4cfdcdfc5ca1ca74a1b9d33f2137a2d324/ic-agent/src/agent/mod.rs#L903-L914).\n    - The certificate’s timestamp, i.e /time path, is not verified, meaning that the certificate effectively has no expiration time. The [IC spec](https://internetcomputer.org/docs/current/references/ic-interface-spec#http-query) doesn’t specify an expiry times, it gives some suggestions, quoting: \"A reasonable expiry time for timestamps in R.signatures and the certificate Cert is 5 minutes (analogously to the maximum allowed ingress expiry enforced by the IC mainnet). Delegations require expiry times of at least a week since the IC mainnet refreshes the delegations only after replica upgrades which typically happen once a week\". For reference you can check how is this implemented in the agent-rs ([here](https://github.com/dfinity/agent-rs/blob/608a3f4cfdcdfc5ca1ca74a1b9d33f2137a2d324/ic-agent/src/agent/mod.rs#L820) and [here](https://github.com/dfinity/agent-rs/blob/608a3f4cfdcdfc5ca1ca74a1b9d33f2137a2d324/ic-agent/src/agent/mod.rs#L876-L887)).\n\n**Additionally**, seems [replica signed queries](https://internetcomputer.org/blog/features/replica-signed-queries) aren’t implemented","format":"markdown","source":"ghsa"},{"lang":"es","text":"Agent Dart es una librería de agentes creada para aplicaciones de Internet Computer para Dart y Flutter. Antes de la versión 1.0.0-dev.29, la verificación de certificados en `lib/agent/certificate.dart` no se realiza correctamente. Durante la verificación de delegación en la función `_checkDelegation`, no se verifican los canister_ranges. El impacto de no verificar los canister_ranges es que una subred puede firmar respuestas de canister en nombre de otra subred. La marca de tiempo del certificado, es decir, la ruta /time, tampoco se verifica, lo que significa que el certificado efectivamente no tiene tiempo de vencimiento. La versión 1.0.0-dev.29 implementa la verificación de certificados adecuada.","source":"nvd"}],"published":"2024-10-15T17:12:31.400Z","modified":"2026-06-17T07:59:01.830Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","score":0,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-295","CWE-347"],"affected":[{"ranges":[{"version":"< 1.0.0-dev.29","status":"affected"}],"vendor":"AstroxNetwork","product":"agent_dart","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.0.0-dev.29","status":"affected"}],"vendor":"astroxnetwork","product":"agent_dart","cpe":"cpe:2.3:a:astroxnetwork:agent_dart:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.0-dev.29"}],"ecosystem":"Pub","package":"agent_dart","purl":"pkg:pub/agent_dart","source":"ghsa"}],"references":[{"url":"https://github.com/AstroxNetwork/agent_dart/security/advisories/GHSA-fmj7-7gfw-64pg","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/AstroxNetwork/agent_dart/commit/0d200686aabcd9313c7bc3e675cbdc82f6b775cf","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/AstroxNetwork/agent_dart/blob/f50971dfae3f536c1720f0084f28afbcf5d99cb5/lib/agent/certificate.dart#L162","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/AstroxNetwork/agent_dart/blob/main/lib/agent/certificate.dart","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-48915","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/AstroxNetwork/agent_dart","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-10-15T18:52:37.058Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-48915","url":"https://www.cve.org/CVERecord?id=CVE-2024-48915","licence":"CVE Terms of Use","modified":"2024-11-21T16:53:44.140Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fmj7-7gfw-64pg","url":"https://github.com/advisories/GHSA-fmj7-7gfw-64pg","licence":"CC-BY-4.0","modified":"2024-10-15T23:41:01.085Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-48915","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-48915","licence":"Public domain","modified":"2026-06-17T07:59:01.830Z"}],"updatedAt":"2026-11-25T22:58:46.767Z","epss":{"score":0.00368,"percentile":0.32734,"date":"2026-12-01T12:00:22.000Z"}}