CRA Article 14 Reporting: 24-Hour Pipeline in Spring Boot
Since 11 September 2026 an exploited vulnerability in your product starts a 24-hour clock toward ENISA and the BSI. A Spring Boot case engine with outbox, approval gate and audit chain.
If you ship software or a connected product in the EU and learn that someone is actively exploiting a vulnerability in it, Article 14 of the Cyber Resilience Act (CRA, Regulation (EU) 2024/2847) obliges you to send an early warning to ENISA and your national CSIRT (the BSI in Germany) within 24 hours. A fuller notification follows within 72 hours, and a final report within 14 days after a fix or mitigation exists. These reporting duties have applied since 11 September 2026.
Most write-ups I found on this come from law firms, analysts and security vendors, and they explain the obligation well. What they skip is the engineering consequence. Imagine a Trivy result for a shipped gateway image landing at 02:40 on a Saturday, together with a customer's message saying they were breached through it. Someone has to decide, someone else has to approve, and a submission has to leave before Sunday 02:40. That scenario is hypothetical for this article, but the shape of it is familiar to me. In payment and market-data systems I have spent years on requirements like "exactly once, before the cut-off, with a record of who did it", and this problem has the same skeleton. Below I define the terms briefly, then build the pipeline.
Terms you need before the code
CRA: the EU regulation setting cybersecurity requirements for products with digital elements, meaning hardware and software that connect to something. Manufacturer: whoever places the product on the market under their own name. An app, an SDK, a gateway appliance or a firmware image sold to EU customers makes your company one.
Actively exploited vulnerability: the regulation's test is reliable evidence that an attacker has used the flaw in your product without the owner's consent. A CVE (the public identifier of a known flaw) showing up in a scan does not meet that test. What starts the clock is evidence of exploitation, not the mere existence of a weakness.
ENISA is the EU Agency for Cybersecurity. The single reporting platform (SRP) is the portal it operates, so a manufacturer files once instead of in each member state. A CSIRT is a national incident response team, and each member state names one as coordinator. Germany's is the BSI (Bundesamt für Sicherheit in der Informationstechnik). The platform forwards your report to ENISA and to the coordinating CSIRT of the state where your main establishment is.
On the German side, I have seen the national CRA implementation act described as adopted on 14 October 2026, with the BSI as market-surveillance authority. I could not confirm that against a primary source, so look up the Bundesgesetzblatt entry before quoting it. The pipeline below only needs the BSI to be the counterpart, not that particular date.
The three clocks
Article 14(2) sets three deliverables for an actively exploited vulnerability. Here is how I read each one when turning it into fields and states:
| Report | Due | What I put in the template |
|---|---|---|
| Early warning, Art. 14(2)(a) | 24 hours after you become aware | Exploitation is happening, a suspicion about malicious origin if you have one, and which member states the product is sold in |
| Vulnerability notification, Art. 14(2)(b) | 72 hours after you become aware | What the product is, how the flaw is being used, what mitigations exist, and your own sensitivity assessment |
| Final report, Art. 14(2)(c) | 14 days after a corrective or mitigating measure is available | Severity and impact, what you know of the attacker, and the update you shipped |
Do not use this table as legal text. Read the article itself for the exact required content, and treat my wording as an engineer's checklist.
One trap shows up in secondary sources. Some of them describe the final report as due "one month after the 72-hour notice". That timing belongs to Article 14(4)(c), which covers severe incidents having an impact on the security of a product. It is a separate track. For an actively exploited vulnerability, Article 14(2)(c) ties the final report to the availability of a fix, so the date is unknown when the case opens and only materialises when engineering says "a mitigation exists". I put that in the data model deliberately, as you will see.
Why not just buy or configure something
Before writing custom code I should say what the alternatives are, because for many teams they are the right call.
- Jira or ServiceNow with workflow rules. You can model the states, add SLA timers and require a second approver. For a company with fewer than a handful of products and an existing PSIRT queue in one of these, this is probably the cheapest path. The weak spots are the ones I care about: a ticket's "created" field is not the same as a declared awareness time, SLA timers rarely survive an integration migration with their history intact, and exactly-once submission to an external system is usually bolted on with webhooks.
- A dedicated PSIRT or vulnerability management product. Several already ingest scanner output and SBOMs. Check whether they model the three CRA clocks and the open-ended final deadline, and whether they let you export the audit trail in a form a market-surveillance authority can read.
- A vendor's CRA compliance module. Fine if your products all live inside that vendor's ecosystem.
I lean toward building a thin custom core when three things hold. First, you already run Spring Boot services and Kafka or a similar bus. Second, the signals you need (internal SBOMs, cluster scans, customer-hosted install data) are not all visible to an off-the-shelf tool. Third, you want the timing and evidence guarantees under your own tests instead of in a vendor's roadmap. Even then I would integrate with the ticketing system your PSIRT already uses rather than replace it.
What carries over from payments, and what does not
My starting kit is three patterns I use for money movement: a transactional outbox, idempotency keys, and deadline escalation. I wrote about the first in the transactional outbox post, and the compliance-evidence angle is close to DORA and NIS2 policy as code. But copying the payment design directly would be a mistake. Four things differ:
- The last deadline is open-ended. A payment cut-off is a fixed time of day. Here,
finalReportDuedoes not exist until a fix is declared, and it can change meaning if the fix is later superseded. - Reports can be amended. A payment instruction is final. A CRA case accumulates facts, so the second and third reports revise the first. My idempotency key therefore includes a revision number instead of just the case id.
- A human must approve inside the clock. Payment flows are automated end to end. Here the approver's availability at 03:00 is a first-class risk, so the approval queue gets its own escalation.
- The destination may not cooperate. A bank rail has a known specification and idempotency semantics. I have not seen a stable public specification for the SRP, so I cannot assume it deduplicates or even offers an API I can poll. That pushes more of the exactly-once burden onto my side.
The architecture

Reading the diagram left to right:
- Signal intake from image scans, SBOM matching, PSIRT (Product Security Incident Response Team) tickets, and runtime telemetry.
- Enrichment with CISA KEV (the Known Exploited Vulnerabilities catalogue) and EPSS (Exploit Prediction Scoring System, a probability that a flaw gets exploited soon).
- Awareness declaration, where a named person states "we hold credible evidence of active exploitation in a product we ship". Its timestamp is T0.
- Case state machine with deadline clocks, backed by an outbox so each transition emits an event reliably.
- Approval gate and submission adapter, idempotent, behind a human sign-off.
Every step writes to a hash-chained audit log.
Step 1: the case and its clocks
The central object is a ReportingCase. It is created when a person (or, rarely, a very high-confidence rule) declares awareness. I kept the state machine deliberately small.
public enum CaseState {
TRIAGE, // signals collected, awareness not yet declared
AWARE, // T0 set, 24h clock running
EARLY_WARNING_SENT,
NOTIFICATION_SENT, // 72h notification submitted
FIX_AVAILABLE, // final-report clock (14 days) running
FINAL_SENT,
CLOSED_NOT_REPORTABLE
}
@Entity
@Table(name = "reporting_case")
public class ReportingCase {
@Id private UUID id;
@Enumerated(EnumType.STRING) private CaseState state = CaseState.TRIAGE;
private String cveId;
private String productId;
private Instant awareAt; // T0, set once, never updated
private Instant fixAvailableAt; // set when engineering confirms a mitigation
@Version private long version;
public Instant earlyWarningDue() { return awareAt == null ? null : awareAt.plus(Duration.ofHours(24)); }
public Instant notificationDue() { return awareAt == null ? null : awareAt.plus(Duration.ofHours(72)); }
public Instant finalReportDue() { return fixAvailableAt == null ? null : fixAvailableAt.plus(Duration.ofDays(14)); }
public void declareAwareness(Instant when) {
if (state != CaseState.TRIAGE) throw new IllegalStateException("Already declared: " + state);
this.awareAt = when;
this.state = CaseState.AWARE;
}
public void markFixAvailable(Instant when) {
if (state != CaseState.NOTIFICATION_SENT && state != CaseState.EARLY_WARNING_SENT)
throw new IllegalStateException("Fix before reporting: " + state);
this.fixAvailableAt = when;
this.state = CaseState.FIX_AVAILABLE;
}
}
Two choices here come from habits I picked up on regulated systems. awareAt is write-once, because if an authority asks when you knew, the answer cannot depend on whether someone edited a row. And finalReportDue() returns null until a fix exists, which follows Art. 14(2)(c) instead of inventing a date at T0. The timestamps are Instants in UTC, which avoids the Berlin-versus-Singapore argument at 3 a.m.
One edge needs handling. A fix may be ready before the 72-hour notification has gone out. As written, markFixAvailable accepts either EARLY_WARNING_SENT or NOTIFICATION_SENT, and the 72h clock keeps running independently of the new 14-day one. If your own state graph is stricter, you will hit this on the first real case.
Step 2: outbox so no transition is lost
Every state change must produce an event, and the event must survive a crash between "database committed" and "message published". That is the classic job of a transactional outbox: the case row and the outbox row are written in one transaction.
create table outbox_event (
id uuid primary key,
case_id uuid not null,
type text not null, -- CASE_AWARE, REPORT_APPROVED, REPORT_SUBMITTED ...
payload jsonb not null,
created_at timestamptz not null default now(),
published_at timestamptz
);
create index on outbox_event (published_at) where published_at is null;
@Service
public class CaseService {
private final CaseRepository cases;
private final OutboxRepository outbox;
private final AuditLog audit;
@Transactional
public void declareAwareness(UUID caseId, String declaredBy, String evidenceSummary) {
ReportingCase c = cases.findById(caseId).orElseThrow();
Instant now = Instant.now();
c.declareAwareness(now);
outbox.save(OutboxEvent.of(c.getId(), "CASE_AWARE",
Map.of("cve", c.getCveId(), "earlyWarningDue", c.earlyWarningDue().toString())));
audit.append(c.getId(), "AWARENESS_DECLARED", declaredBy, evidenceSummary);
}
}
A relay (a scheduled poller or Debezium) reads unpublished rows with FOR UPDATE SKIP LOCKED and forwards them to Kafka, where Kafka share groups are one option on the consumer side. Consumers de-duplicate on event id. The failure cases of this pattern are covered in more depth in my payments write-up.
Step 3: deadline escalation at T-6h and T-1h
A deadline that lives only in a column is a deadline nobody sees. A scheduler scans open cases and raises escalations as thresholds are crossed. The escalation itself has to be idempotent, otherwise a restarted pod pages the same person fifteen times.
@Component
public class DeadlineWatcher {
private static final List<Duration> THRESHOLDS = List.of(Duration.ofHours(6), Duration.ofHours(1));
private final CaseRepository cases;
private final EscalationRepository escalations;
private final Pager pager;
@Scheduled(fixedDelay = 60_000)
@Transactional
public void scan() {
Instant now = Instant.now();
for (ReportingCase c : cases.findOpen()) {
check(c, "EARLY_WARNING", c.earlyWarningDue(), c.getState() == CaseState.AWARE, now);
check(c, "NOTIFICATION", c.notificationDue(),
c.getState() == CaseState.AWARE || c.getState() == CaseState.EARLY_WARNING_SENT, now);
check(c, "FINAL", c.finalReportDue(), c.getState() == CaseState.FIX_AVAILABLE, now);
}
}
private void check(ReportingCase c, String report, Instant due, boolean pending, Instant now) {
if (due == null || !pending) return;
for (Duration t : THRESHOLDS) {
if (!now.isBefore(due.minus(t))) {
String key = c.getId() + ":" + report + ":T-" + t.toHours() + "h";
if (escalations.insertIfAbsent(key)) { // unique constraint on key
pager.page(c, report, due, now.isAfter(due) ? "OVERDUE" : "T-" + t.toHours() + "h");
}
}
}
}
}
insertIfAbsent is an INSERT ... ON CONFLICT DO NOTHING that reports whether a row was written. When two replicas race, one wins and pages while the other sees a conflict and stays silent. For the 24-hour clock, T-6h is the first page and T-1h is the one that reaches the on-call lead. Anyone who has built payment cut-off alerts will find this familiar, with one addition: the same watcher should page when a draft is waiting for an approver, since that wait is part of the 24 hours.
A note about weekends. I found no provision in Article 14 that pauses the clocks for weekends, holidays or an unreachable approver, and I have not seen guidance that does. Build as if none exists. If your legal team finds a stop-the-clock rule for a specific situation, make it an explicit, audited event on the case, not a quiet edit to awareAt.
Step 4: approval gate and an idempotent submission adapter
This is where I spend the most care. A wrong or premature report to a regulator is a real problem, so a human approves every outgoing report. Approval must not become the thing that misses the deadline, which is why the approval queue is covered by the escalation above.
The flow:
- A drafter, often the PSIRT lead, prepares the payload from the case.
- A second person with the approver role signs off. The drafter cannot also approve.
- Approval writes a
REPORT_APPROVEDoutbox event. - The submission consumer calls the adapter.
The adapter hides the destination. Today that is ENISA's platform, and the interface leaves room for a BSI-direct fallback or a manual file-based path if the platform is down during a deadline window. Since I have not seen a stable public specification, the HTTP details below are a placeholder contract of my own. Replace them with whatever the platform really offers.
public interface ReportSubmitter {
SubmissionReceipt submit(ApprovedReport report, String idempotencyKey);
}
@Component
public class SrpSubmitter implements ReportSubmitter {
private final RestClient client;
private final SubmissionRepository submissions;
private final AuditLog audit;
@Override
@Transactional
public SubmissionReceipt submit(ApprovedReport r, String key) {
Optional<Submission> prior = submissions.findByIdempotencyKey(key);
if (prior.isPresent() && prior.get().isAccepted()) {
return prior.get().receipt(); // retry after crash: do not resend
}
audit.append(r.caseId(), "SUBMISSION_ATTEMPT", "system", "key=" + key);
try {
SubmissionReceipt receipt = client.post()
.uri("/reports")
.header("Idempotency-Key", key)
.body(r.payload())
.retrieve()
.body(SubmissionReceipt.class);
submissions.save(Submission.accepted(key, r.caseId(), receipt));
audit.append(r.caseId(), "SUBMISSION_ACCEPTED", "system", "receipt=" + receipt.id());
return receipt;
} catch (RestClientException ex) {
audit.append(r.caseId(), "SUBMISSION_FAILED", "system", ex.getMessage());
throw new RetryableSubmissionException(ex);
}
}
}
The idempotency key is caseId + ":" + reportType + ":" + approvedRevision. Because the platform may not honour an Idempotency-Key header, my local submissions table is the real safeguard. A crash between the HTTP call and the save would still leave a duplicate risk, so I record the attempt first and reconcile on restart by asking the platform what it holds instead of blindly resending. A duplicate is less harmful than silence, but a tidy record shows you were in control.
On Spring Boot 4.x, RestClient is the right client here, and the notes in my RestTemplate deprecation post apply. Since the adapter calls a URL taken from configuration, the SSRF mitigation changes in Spring Boot 4.1 deserve a read before you wire up the endpoint.
Step 5: an audit trail that cannot be quietly rewritten
To a market-surveillance authority, "we have logs" is weaker than "we can show these logs were not edited". A hash chain gets you there cheaply: each audit row stores the SHA-256 of its own content together with the previous row's hash.
@Component
public class AuditLog {
private final AuditRepository repo;
@Transactional
public void append(UUID caseId, String action, String actor, String detail) {
String prevHash = repo.findLatestHash(caseId).orElse("GENESIS");
Instant at = Instant.now();
String material = String.join("|", caseId.toString(), action, actor, detail, at.toString(), prevHash);
String hash = sha256Hex(material);
repo.save(new AuditEntry(caseId, action, actor, detail, at, prevHash, hash));
}
public boolean verify(UUID caseId) {
String prev = "GENESIS";
for (AuditEntry e : repo.findByCaseIdOrderByAtAsc(caseId)) {
String expected = sha256Hex(String.join("|", e.caseId().toString(), e.action(),
e.actor(), e.detail(), e.at().toString(), prev));
if (!expected.equals(e.hash()) || !prev.equals(e.prevHash())) return false;
prev = e.hash();
}
return true;
}
}
Give the application's database role INSERT and SELECT on this table and nothing else. Periodically copy the newest chain head somewhere your own administrators cannot alter, for example an object store with a retention lock. Anyone claiming tampering would then need to beat both the database and the external anchor.
What belongs in detail? Links to the raw scan output, the KEV entry as fetched (with fetch time), the exact SBOM version that matched, log excerpts or screenshots that show exploitation, and who approved which draft. Hash the evidence files and keep the hashes in the chain, not the files themselves.
Step 6: signals from Kubernetes scans and SBOMs
Now the front door. The aim is not automatic reporting. It is to put the right case in front of a person quickly, with the evidence already attached.
Image scans. Trivy Operator writes VulnerabilityReport custom resources for each workload image in the cluster, and Grype can emit JSON for the same purpose in CI. I ingest the CVE list per image digest either way.
SBOM. A CycloneDX document lists a product's components by package URL (purl), such as pkg:maven/org.apache.logging.log4j/log4j-core@2.14.1. I store one SBOM per released product version. The key query is: which shipped versions contain the vulnerable component? The cluster only shows what you run, while the CRA concerns what you sell, including customer-hosted installs.
@Service
public class SignalIngestor {
private final SbomIndex sbomIndex; // purl -> product versions
private final KevClient kev; // CISA Known Exploited Vulnerabilities feed, cached
private final EpssClient epss;
private final TriageRepository triage;
public void onScanFinding(ScanFinding f) {
// f: cveId, purl, imageDigest, source = TRIVY | GRYPE
List<ProductVersion> affected = sbomIndex.productsContaining(f.purl());
if (affected.isEmpty()) return; // runs here, not shipped to customers
boolean inKev = kev.contains(f.cveId());
double epssScore = epss.score(f.cveId());
Priority p = inKev ? Priority.EXPLOITATION_EVIDENCE
: epssScore > 0.5 ? Priority.WATCH
: Priority.NORMAL;
triage.upsert(TriageItem.of(f, affected, inKev, epssScore, p));
}
}
Be strict about what KEV means. A KEV entry is solid evidence that exploitation exists somewhere, and a good reason to open a case. Whether it counts as "actively exploited in your product" is a judgement, and the CRA leaves that judgement with you. EPSS is a probability and not evidence, so it only lifts triage priority and never starts a clock. The signals that most often become real awareness are PSIRT tickets and runtime telemetry: WAF hits matching a known exploit pattern, unexpected child processes spawned by your service, or a customer reporting a breach through your gateway.
When the flaw is in someone else's code
Most real cases will not be in code your team wrote. They will be in Log4j-style libraries, a base image layer, or a vendored C dependency. The manufacturer duty is not diluted by that: if the exploited component ships inside your product, the product has the exploited vulnerability, and your 24 hours run from when you became aware. The SBOM join in Step 6 is what makes that answerable quickly instead of by grepping repositories.
Three consequences for the design:
- Pass it upstream. The CRA also expects you to report vulnerabilities you find in components to whoever maintains them, so give the case a field for the upstream contact and a task to notify them. Do this in parallel and do not let it delay your own early warning.
- Your fix may not be yours to ship.
fixAvailableAtcan depend on an upstream release. Record the fix source (own patch, upstream release, configuration mitigation), because a mitigation like disabling a feature counts differently in the final report than a patched version. - Open-source stewards. If your organisation maintains an open-source project rather than selling a product, Article 24 puts it in a lighter regime as a steward, with different obligations. Whether you are a steward, a manufacturer, or both for different artifacts is a scoping question for counsel. If you are a manufacturer who builds on an open-source project, you remain responsible for the product you place on the market.
Reporting versus coordinated disclosure
There is a real tension here. Many vulnerability handlers prefer a quiet fix window: the reporter, the maintainer and the vendor agree on an embargo date, then publish together. Article 14 does not wait for that agreement. The 24-hour early warning runs from awareness of active exploitation, not from the planned disclosure date. How I square the two:
- The report goes to ENISA and the coordinating CSIRT, which handle it with confidentiality. It is not a public advisory, so reporting on time does not break an embargo with a finder.
- If an outside researcher is involved, I record the embargo terms on the case and tell them early that exploitation changes the timetable. Once there is evidence of attacks, a long embargo is usually hard to defend anyway.
- The case engine tracks the regulatory clocks only. Publishing a public advisory and your own VDP timeline sit in a separate workflow, linked by case id, so one cannot silently move the other.
A decision I made on purpose: awareness is a human act
I considered letting a rule declare awareness automatically when a KEV match hits a shipped product, and decided against it. An automatic rule would start 24-hour clocks for flaws that are listed but unreachable in your configuration, producing reports you would later need to retract. So a KEV match raises a high-priority triage item that pages the PSIRT lead, and declaring awareness is a single button with a mandatory evidence note. The clock starts when the person declares it, and the audit entry records who did and why.
The opposite risk exists as well: someone sitting on credible evidence to postpone T0. That is why the triage item carries its own opened_at. If a reviewer later sees a KEV match opened at 09:00 and awareness declared the following evening, the question "why the gap?" has an answer in the log, whatever that answer is.
How I would test it before it matters
- Clock tests: inject a
Clockso you can move time and assert that T-6h and T-1h pages fire exactly once, even after restarting the watcher in the middle of a window. - Crash tests: kill the submitter between the HTTP call and the database write, and confirm reconciliation finds one report and not two.
- Chain tests: flip a byte in one audit row and confirm
verifyfails. - Tracing: carry the case id through the relay, approval and submission spans with distributed tracing in Spring Boot, so a slow hop shows up before a deadline does. If you are upgrading the agent too, the OpenTelemetry Java agent 3.0 migration notes cover the Kafka dashboards that change.
- Game day: once a quarter, run a fake case end to end against a sandbox destination. The first time I ran something like this for payment cut-offs, we found the approver's number in the pager was a year out of date. That sort of dull finding is the reason to rehearse.
What this does not solve
Software will not decide whether your product is in CRA scope, what "reliable evidence" means for it, or how to word a report. Those questions belong to your legal and security people and to the national authority's guidance, which in Germany means whatever the BSI publishes. I also have not seen a final public specification for the reporting platform's interface, so keep the adapter thin and expect to rewrite it. What the pipeline does give you is the part that tends to fail in practice: timing, ownership, de-duplication and proof.
If you are building something similar and want a second pair of eyes on the design, you can find my background in the experience section and reach me through the contact section.
Your next step
Today, pick one product you ship and write down three things: where its CycloneDX SBOM is stored, who the named PSIRT lead and approver are, and which time zone your deadlines are computed in. Then create the reporting_case and outbox_event tables from this post in a branch, and run a fake awareness declaration through to a dummy submission before the end of the week.
FAQ
What is the EU Cyber Resilience Act reporting duty?
Since 11 September 2026, makers of software and connected products sold in the EU must tell the authorities when they learn that a vulnerability in their product is being actively exploited by attackers. The first message, called an early warning, is due within 24 hours of finding out.
What are the 24-hour, 72-hour and final report deadlines?
The early warning is due within 24 hours of the manufacturer becoming aware of active exploitation. A fuller vulnerability notification is due within 72 hours. The final report is due within 14 days after a fix or other mitigation becomes available.
Who receives the report in Germany?
Reports go through a single reporting platform run by ENISA. They are delivered to ENISA and to the national CSIRT chosen as coordinator, which for German manufacturers is the BSI, the Federal Office for Information Security.
What if the exploited flaw is in a third-party library?
The duty still sits with you as the manufacturer of the finished product. Your SBOM tells you which of your shipped versions contain the library, and you should also pass the finding upstream to whoever maintains it.
Can a spreadsheet meet the 24-hour clock?
It can, on a good day, but it cannot prove when the clock started, who approved what, or that a message was sent exactly once. A tracked workflow with timestamps and an audit log gives you that proof.