{"id":"CVE-2018-12520","aliases":["EUVD-2018-4490","GHSA-mx87-47cg-9wpg","UBUNTU-CVE-2018-12520","USN-4842-1"],"status":"published","title":"An issue was discovered in ntopng 3.4 before 3.4.180617. The PRNG involved in the generation of...","description":"An issue was discovered in ntopng 3.4 before 3.4.180617. The PRNG involved in the generation of session IDs is not seeded at program startup. This results in deterministic session IDs being allocated for active user sessions. An attacker with foreknowledge of the operating system and standard library in use by the host running the service and the username of the user whose session they're targeting can abuse the deterministic random number generation in order to hijack the user's session, thus escalating their access.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.10542,"percentile":0.95803,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-335"],"published":"2018-07-05T20:00:00Z","modified":"2026-10-20T13:26:57Z","exploits":[{"source":"exploitdb","id":"EDB-44973","title":"ntop-ng \u003c 3.4.180617 - Authentication Bypass","type":"webapps","platform":"lua","date":"2018-07-03","url":"https://www.exploit-db.com/exploits/44973"}],"fixes":[{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ntopng","fixed_in":["2.2+dfsg1-1ubuntu0.1~esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"ntopng","fixed_in":["3.2+dfsg1-1ubuntu0.1~esm2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ntopng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2+dfsg1-1ubuntu0.1~esm2"}]}],"versions":["1.2.1+dfsg1-2ubuntu1","2.0+dfsg1-1","2.2+dfsg1-1","2.2+dfsg1-1build1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"ntopng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2+dfsg1-1ubuntu0.1~esm2"}]}],"versions":["2.4+dfsg1-3","2.4+dfsg1-4","3.2+dfsg1-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ntopng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2+dfsg1-1ubuntu0.1~esm2"}]}],"versions":["1.2.1+dfsg1-2ubuntu1","2.0+dfsg1-1","2.2+dfsg1-1","2.2+dfsg1-1build1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"ntopng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2+dfsg1-1ubuntu0.1~esm2"}]}],"versions":["2.4+dfsg1-3","2.4+dfsg1-4","3.2+dfsg1-1"]}],"products":[{"vendor":"ntop","product":"ntopng"}],"references":[{"url":"https://github.com/ntop/ntopng/commit/30610bda60cbfc058f90a1c0a17d0e8f4516221a","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","report"]},{"url":"https://www.exploit-db.com/exploits/44973/","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"http://seclists.org/fulldisclosure/2018/Jul/14","tags":["mailing-list","x_refsource_FULLDISC","x_transferred","Exploit","Mailing List","Third Party Advisory","evidence","report"]},{"url":"https://gist.github.com/Psychotropos/3e8c047cada9b1fb716e6a014a428b7f","tags":["x_refsource_MISC","x_transferred","Exploit","evidence","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12520"},{"url":"https://github.com/advisories/GHSA-mx87-47cg-9wpg"},{"url":"https://ubuntu.com/security/CVE-2018-12520","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4842-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12520","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-12520","description":"An issue was discovered in ntopng 3.4 before 3.4.180617. The PRNG involved in the generation of session IDs is not seeded at program startup. This results in deterministic session IDs being allocated for active user sessions. An attacker with foreknowledge of the operating system and standard library in use by the host running the service and the username of the user whose session they're targeting can abuse the deterministic random number generation in order to hijack the user's session, thus escalating their access.","status":"published","published":"2018-07-05T20:00:00Z","modified":"2024-08-05T08:38:05.943Z","updated_at":"2026-11-02T14:35:06.320867Z"}],"euvd":[{"id":"EUVD-2018-4490","description":"An issue was discovered in ntopng 3.4 before 3.4.180617. The PRNG involved in the generation of session IDs is not seeded at program startup. This results in deterministic session IDs being allocated for active user sessions. An attacker with foreknowledge of the operating system and standard library in use by the host running the service and the username of the user whose session they're targeting can abuse the deterministic random number generation in order to hijack the user's session, thus escalating their access.","status":"published","published":"2018-07-05T20:00:00Z","modified":"2024-08-05T08:38:05Z","updated_at":"2026-11-03T02:39:52.61924Z"}],"ghsa":[{"id":"GHSA-mx87-47cg-9wpg","title":"An issue was discovered in ntopng 3.4 before 3.4.180617. The PRNG involved in the generation of...","description":"An issue was discovered in ntopng 3.4 before 3.4.180617. The PRNG involved in the generation of session IDs is not seeded at program startup. This results in deterministic session IDs being allocated for active user sessions. An attacker with foreknowledge of the operating system and standard library in use by the host running the service and the username of the user whose session they're targeting can abuse the deterministic random number generation in order to hijack the user's session, thus escalating their access.","status":"published","published":"2022-05-13T01:49:35Z","modified":"2023-02-02T05:01:54Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-335"],"updated_at":"2026-11-02T14:51:17.99492Z"}],"nvd":[{"id":"CVE-2018-12520","description":"An issue was discovered in ntopng 3.4 before 3.4.180617. The PRNG involved in the generation of session IDs is not seeded at program startup. This results in deterministic session IDs being allocated for active user sessions. An attacker with foreknowledge of the operating system and standard library in use by the host running the service and the username of the user whose session they're targeting can abuse the deterministic random number generation in order to hijack the user's session, thus escalating their access.","status":"published","published":"2018-07-05T20:29:00.527Z","modified":"2026-06-17T01:37:53.913Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-335"],"updated_at":"2026-11-02T14:04:31.362791Z"}],"osv":[{"id":"CVE-2018-12520","description":"An issue was discovered in ntopng 3.4 before 3.4.180617. The PRNG involved in the generation of session IDs is not seeded at program startup. This results in deterministic session IDs being allocated for active user sessions. An attacker with foreknowledge of the operating system and standard library in use by the host running the service and the username of the user whose session they're targeting can abuse the deterministic random number generation in order to hijack the user's session, thus escalating their access.","status":"published","published":"2018-07-05T20:29:00.527Z","modified":"2026-10-20T13:26:57.230365323Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:07.934182Z"},{"id":"UBUNTU-CVE-2018-12520","description":"An issue was discovered in ntopng 3.4 before 3.4.180617. The PRNG involved in the generation of session IDs is not seeded at program startup. This results in deterministic session IDs being allocated for active user sessions. An attacker with foreknowledge of the operating system and standard library in use by the host running the service and the username of the user whose session they're targeting can abuse the deterministic random number generation in order to hijack the user's session, thus escalating their access.","status":"published","published":"2018-07-05T20:29:00Z","modified":"2026-02-04T02:54:41.297489Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:17.014176Z"},{"id":"USN-4842-1","title":"ntopng vulnerability","description":"It was discovered that ntopng did not properly seed its random number\ngenerator, leading to predictable session tokens. An attacker could use\nthis vulnerability to hijack a user's session.\n","status":"published","published":"2021-03-15T22:25:46Z","modified":"2026-06-25T13:30:30.818739709Z","updated_at":"2026-11-02T16:58:15.159055Z"}]}}
